package com.blkj.spring_boot_blkj.mapper;

import com.blkj.spring_boot_blkj.pojo.*;
import com.blkj.spring_boot_blkj.vo.WorkFlowDataReturn;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface WorkFlowMapper {
    int addWorkFlowData(BpmnAttr bpmnAttr);

    Integer queryLastId();

    int addWorkFlowBpmData(WorkFlowData workFlowData);

    int addRuleData(ServiceTaskRule serviceTaskRule);

    int addNodeData(NodeData nodeData);

    int addTargetData(Target target);

    int addSourceData(Source source);

    int addConnectionData(ConnectionData connectionData);

    List<WorkFlowDataReturn> selectWorkFlowData();

    BpmnAttr selectBpmnAttrData(Integer bpmnAttrId);

    List<NodeData> selectNodeData(Integer workflowId);

    ServiceTaskRule selectTaskRuleData(Integer servicetaskruleId);

    List<ConnectionData> selectConnectionData(Integer workflowId);

    Target selectTargetData(Integer targetId);

    Source selectSourceData(Integer sourceId);
}
